package com.study.demo.gsbean.demo1;

import org.springframework.beans.factory.BeanNameAware;

/**
 * @author: elvin
 * @time: 2019-04-17 14:20
 * @desc:
 **/
public class MyBeanNameAware implements BeanNameAware {

    private String name;

    public void setBeanName(String name) {
        this.name = name;
    }

    public void printfName(){
        System.out.println(name);
    }
}
